using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartApplication.Domain.Entity
{
    /// <summary>
    /// 养殖详细信息
    /// </summary>
    [Table("FeedModel")]
    public class FeedModel : BaseEntity
    {
        /// <summary>
        /// 溯源编号
        /// </summary>
        [Required]
        public long SourceId { get; set; }

        /// <summary>
        /// 品种
        /// </summary>
        [StringLength(100)]
        [Required]
        public string FeedVariety { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        [StringLength(200)]
        [Required]
        public string FeedSource { get; set; }

        /// <summary>
        /// 饲养天数
        /// </summary>
        public int FeedDays { get; set; }

        /// <summary>
        /// 饲料品牌
        /// </summary>
        [StringLength(100)]
        [Required]
        public string FeedFoodName { get; set; }

        /// <summary>
        /// 饲养负责人
        /// </summary>
        [StringLength(50)]
        [Required]
        public string FeedName { get; set; }

        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime? LeaveDate { get; set; }


        /// <summary>
        /// 企业外键
        /// </summary>
        [Required]
        public long CompaniesId { get; set; }

        /// <summary>
        /// 图片(动检证)
        /// </summary>
        [StringLength(500)]
        public string Pic { get; set; }

    }
} 